<script type="text/template" id="breadCrumbTemplate">
    <% for(var i=0; i
        <items.length
        ; ++i){ console.log(items.length) %>
            <% if(i!=(items.length-1)) { %>
                <li><a href="<%= items[i].link %>"><%= items[i].name %></a> <span class="divider">></span></li>


                <% }else{%>
            <li class="active"><%= items[i].name %></li>
            <% }%>
            <% }%>

                </script>

                    <script type="text/template" id="galcounter">
                        <li><a href="test.html#/photos/<%= onPage %>/<%= page %>"><%= count %></a></li>
                        </script>

                            <script type="text/template" id="basketItemTemplate">
                                <li class="span8">
                                    <img class="span1" src="images/mini/<%= name %>" alt="">

                                        <div class="span2">
                                        Описание и прочие параметры
                                        </div>

                                        <div class="span1">
                                        Количество
                                        </div>
                                        <div class="span2">
                                        Цена
                                        </div>
                                        <div class="span1" style="background-color:#123498">
                                            <button> Убрать из корзины</button>
                                        </div>

                                    </li>
                                </script>


                                <script type="text/template" id="item-template">
                                    <li style="display:none" class="span2">
                                        <a class="thumbnail" href="#">
                                            <div class="thumbnail">

                                                <img src="/backbone/images/mini/<%= name %>" alt="">

                                                </div>
                                            </a>
                                            <h4 style="margin-top:2px; display:inline-block">2500 |</h4>
                                            <button href="#<%= id %>" class="btn-link" style=" margin-top:2px; display:inline-block">В корзину</button>

                                        </li>
                                    </script>
